import { Injectable, Injector } from '@angular/core';
import { Observable } from 'rxjs';
import { environment } from '../../../../../environments/environment';
import { HttpClient } from '@angular/common/http';

@Injectable({
    providedIn: 'root'
})
export class ServerService {
    base = '/monitor/server';
    constructor(private _injector: Injector,private _http: HttpClient) {
    }


    server(): Observable<any> {
        return this._http.get<any>(environment.baseUrl + this.base , {});
    }
}
